#include "ghToolkit.h"

    ghToolkit::system   GAME;
    ghToolkit::motion   GAME_MOTION;
    ghToolkit::entity2D GAME_ENTITY;

    bool done;

ghMAIN
{
    GAME.init   ( ghMODE_2D );
    GAME.window ( 800, 600, 32, "- test -" );
    GAME_ENTITY.load ( "pongo-fondo.png" );

    while ( !done ) {
        GAME.clear( );
            GAME_ENTITY.draw( 400, 300 );
            switch ( GAME_MOTION.getEvents() ) {
                case ghKEY_ESCAPE:
                    done=1;
                    break;
                case ghKEY_QUIT:
                    done=1;
                    break;
            }
        GAME.flip( );
    }
    return 0;
}

